package com.atguigu.chouxiang;

public class TestGraphic {
    public static void main(String[] args) {
//        Graphic g = new Graphic();//错误
        Rectangle g = new Rectangle(8,6);
        double area = g.area();
        System.out.println("面积：" + area);
        System.out.println(g);
    }
}
